You can call the function KCSetInteractionAllowed to tell Keychain Manager functions that display user interface whether to do so. If you pass
true
in the state parameter, user interaction is allowed. If you pass
false,
user interaction is not allowed. In this case, Keychain functions that normally display a user interface will instead return an error. Failing to re-enable user interaction will affect other clients of the Keychain Manager. The interaction allowed state is reset when the machine reboots to the default state, that is, user interaction allowed.
The function KCIsInteractionAllowed returns a
Boolean
value indicating whether Keychain Manager functions that display user interface will do so. If
true
, user interaction is allowed, and Keychain Manager is free to show a user interface when needed.